package com.woniuxy.dao.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 服务指南
 * </p>
 *
 * @author Keep it simple
 * @since 2022-06-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class RepairGuidance2 implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 标题
     */
    @TableField("guidanceTitle")
    private String guidancetitle;

    /**
     * 正文
     */
    @TableField("guidanceContent")
    private String guidancecontent;

    /**
     * 发表时间
     */
    @TableField(value = "publishDate",fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime publishdate;

    /**
     * 发表单位
     */
    @TableField("publishCompany")
    private String publishcompany;

    /**
     * 发布人
     */
    private String publisher;

    /**
     * 删除
     */
    private Integer deleted;

    /**
     * 服务指南大标题ID
     */
    private Integer largeHeadlineId;

}
